<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page isErrorPage="true"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Error page</title>
</head>
<body>
	<h1 align="center">Sorry! Exceptions found !</h1>
	<h2 align="center">Please check and try again!</h2>
	
	<!-- ============================= Print stack trace ============================= -->
	<h3>${exception.message}</h3>
	<h4>Stack trace here: </h4>
	<pre style="color: red;">
	<core:forEach items="${exception.stackTrace}" var="element">
		<core:out value="${element}" />
	</core:forEach>
	</pre>
	<!-- ============================= /Print stack trace ============================= -->	
	
</body>
</html>